<template>
  <div>
<h1>孙子组件</h1>
<br>
<h2>{{ add }}</h2>
  </div>
</template>

<script>
import { inject } from 'vue'
export default {
  setup () {
    // 接收数据
    const add = inject('rmb')
    return { add }
  }
}
</script>

<style lang="scss" scoped>

</style>
